package org.rugby.online.impl;

import java.util.UUID;

import org.rugby.online.core.base.RboObject;

public abstract class DefaultObject implements RboObject {

	/**
	 * Serial ID
	 */
	private static final long serialVersionUID = -4909598780190600377L;

	private String name;
	
	private long identifier;
	
	public DefaultObject() {
		super();
		this.identifier = UUID.randomUUID().getMostSignificantBits();
	}
	
	@Override
	public final String getName() {
		return this.name;
	}

	@Override
	public final long getId() {
		return this.identifier;
	}

	protected final void setName(String name) {
		this.name = name;
	}

}
